package com.luty.rpc.sample.server;

import com.luty.rpc.server.RpcService;
import com.luty.rpc.service.api.HelloService;
import com.luty.rpc.service.api.Person;

/**
 * Created by liuyunxin on 2017/7/3.
 */
@RpcService(HelloService.class)
public class HelloServiceImple1 implements HelloService{
    @Override
    public String greet(String name) {
        return "Hello" + name + "!!!";
    }

    @Override
    public String greet(Person person) {
        return "Hello" + person.getFirstName() + person.getLastName() + "!!!";
    }
}
